export const routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('@/layout/index.vue'),
        meta: {
            loginRequired: true
        },
        children: [
            {
                path: '/batch/job',
                name: 'batch',
                component: () => import('@/views/main/batch/job.vue')
            },
            {
                path: 'welcome',
                name: 'welcome',
                component: () => import('@/views/main/welcome.vue')
            }, {
                path: '/base/train',
                name: 'base-train',
                component: () => import('@/views/main/base/train.vue')
            }, {
                path: '/base/station',
                name: 'base-station',
                component: () => import('@/views/main/base/station.vue')
            }, {
                path: '/base/train-station',
                name: 'base-train-station',
                component: () => import('@/views/main/base/train-station.vue')
            }, {
                path: '/base/train-carriage',
                name: 'base-train-carriage',
                component: () => import('@/views/main/base/train-carriage.vue')
            }, {
                path: '/base/train-seat',
                name: 'base-train-seat',
                component: () => import('@/views/main/base/train-seat.vue')
            }, {
                path: '/business/daily-train',
                name: 'business-daily-train',
                component: () => import('@/views/main/business/daily-train.vue')
            }, {
                path: '/business/daily-train-station',
                name: 'business-station',
                component: () => import('@/views/main/business/daily-train-station.vue')
            }, {
                path: '/business/daily-train-seat',
                name: 'business-train-station',
                component: () => import('@/views/main/business/daily-train-seat.vue')
            }, {
                path: '/business/train-carriage',
                name: 'business-train-carriage',
                component: () => import('@/views/main/business/daily-train-carriage.vue')
            }, {
                path: '/business/train-seat',
                name: 'business-train-seat',
                component: () => import('@/views/main/business/daily-train-seat.vue')
            }, {
                path: '/business/daily-train-ticket',
                name: 'business-train-ticket',
                component: () => import('@/views/main/business/daily-train-ticket.vue')
            }, {
                path: '/business/sk-token',
                name: 'business-sk-token',
                component: () => import('@/views/main/business/sk-token.vue')
            }, {
                path: '/member/ticket',
                name: 'member-train-ticket',
                component: () => import('@/views/main/member/ticket.vue')
            }
        ]
    }, {
        path: "",
        redirect: '/welcome',
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/login.vue')
    }, {
        path: '/:pathMatch(.*)*',
        redirect: '/404',
        name: 'any'
    }
]